home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 September / PCWorld_2006-09_cd.bin / v cisle / hexer / mpth_17.exe / {app} / scripts / inc / gui.mps < prev   
Text File  |  2005-12-07  |  4KB  |  94 lines

  1. = gui functions are stored in plugin gui_funcs.ths
  2.  
  3. = gui constants
  4. =
  5.  
  6. = common
  7.  
  8. = text align
  9. DEF GUI_TEXTALIGN_LEFT          0:= align text left
  10. DEF GUI_TEXTALIGN_RIGHT         1:= align text right
  11. DEF GUI_TEXTALIGN_CENTER        2:= horizontally centered text
  12.  
  13. = gui element align
  14. DEF GUI_ALIGN_NONE              0:= no gui element aligning
  15. DEF GUI_ALIGN_TOP               1:= at the top of the parent element
  16. DEF GUI_ALIGN_BOTTOM            2:= at the bottom of the parent element
  17. DEF GUI_ALIGN_LEFT              3:= at the left of the parent element
  18. DEF GUI_ALIGN_RIGHT             4:= at the right of the parent element
  19. DEF GUI_ALIGN_ALL               5:= all over the parent element
  20.  
  21. = shift state flags
  22. DEF GUI_SHIFT_SHIFT        1:=  Shift key is down
  23. DEF GUI_SHIFT_MENU        2:=  Menu (Alt) key is down
  24. DEF GUI_SHIFT_CTRL        4:=  Ctrl key is down
  25. DEF GUI_SHIFT_MLEFT        8:=  Left mouse button is down
  26. DEF GUI_SHIFT_MRIGHT        16:= Right mouse button is down
  27. DEF GUI_SHIFT_MMIDDLE        32:= Middle mouse button is down
  28. DEF GUI_SHIFT_MDBL        64:= Doublecklick
  29.  
  30.  
  31. = FORM properties
  32. = FORM border styles
  33. DEF GUI_BORDER_NONE             0:= no form border 
  34. DEF GUI_BORDER_SINGLE           1:= single border, not sizeable 
  35. DEF GUI_BORDER_SIZEABLE         2:= thick border, sizeable
  36. DEF GUI_BORDER_DIALOG           3:= dialog border, not sizeable
  37. DEF GUI_BORDER_TOOLWIN          4:= small title bar, not sizeable
  38. DEF GUI_BORDER_SIZETOOLWIN      5:= small title bar, sizeable
  39.  
  40. = FORM positions
  41. DEF GUI_FORMPOS_DESIGNED        0:= position as designed 
  42. DEF GUI_FORMPOS_DEFAULT         1:= position/size set by windows
  43. DEF GUI_FORMPOS_DEFAULTPOS      2:= position set by windows
  44. DEF GUI_FORMPOS_DEFAULTSIZE     3:= size set by windows
  45. DEF GUI_FORMPOS_SCREENCENTER    4:= center on screen
  46. DEF GUI_FORMPOS_DESKTOPCENTER   5:= center on desktop
  47. DEF GUI_FORMPOS_PARENTCENTER    7:= center on parent window
  48.  
  49. = FORM states
  50. DEF GUI_FORMSTATE_NORMAL        0:= normal showing
  51. DEF GUI_FORMSTATE_MINIMIZED     1:= minimized
  52. DEF GUI_FORMSTATE_MAXIMIZED     2:= maximized
  53.  
  54. = FORM icons (OR them for multiple icons)
  55. DEF GUI_FORMICON_SYSMENU        1:= show system menu
  56. DEF GUI_FORMICON_MINIMIZE       2:= show minimize button
  57. DEF GUI_FORMICON_MAXIMIZE       4:= show maximize button
  58.  
  59.  
  60. = COMBOBOX properties
  61. = COMBOBOX styles
  62. DEF GUI_COMBOSTYLE_DROPDOWN     0:= drop down list + edit
  63. DEF GUI_COMBOSTYLE_SIMPLE       1:= edit + fixed list
  64. DEF GUI_COMBOSTYLE_DROPDOWNLIST 2:= drop down list only
  65.  
  66. = STATIC properties
  67. = STATIC text layout
  68. DEF GUI_STATICLAYOUT_TOP        0:= text is at the top of the element
  69. DEF GUI_STATICLAYOUT_CENTER     1:= text is vertically centered
  70. DEF GUI_STATICLAYOUT_BOTTOM     2:= text is at the bottom of the element
  71.  
  72.  
  73. = MEMO properties
  74. = MEMO scrollbars
  75. DEF GUI_MEMOSCROLLBAR_NONE      0:= no scrollbars 
  76. DEF GUI_MEMOSCROLLBAR_HORZ      1:= horizontal scrollbar
  77. DEF GUI_MEMOSCROLLBAR_VERT      2:= vertical scrollbar
  78. DEF GUI_MEMOSCROLLBAR_BOTH      3:= h and v scrollbars
  79.  
  80.  
  81. = CHECKBOX properties
  82. = CHECKBOX state (GUI_CHECKBOXSTATE_GRAYED possible only if AllowGrayed is true)
  83. DEF GUI_CHECKBOXSTATE_UNCHECKED 0:= not checked
  84. DEF GUI_CHECKBOXSTATE_CHECKED   1:= checked
  85. DEF GUI_CHECKBOXSTATE_GRAYED    2:= grayed
  86.  
  87. = FONT properties
  88. = FONT styles (OR them for multiple icons)
  89. DEF GUI_FONTSTYLE_BOLD      1:= bold font
  90. DEF GUI_FONTSTYLE_ITALIC    2:= italic font
  91. DEF GUI_FONTSTYLE_UNDERLINE 4:= underline
  92. DEF GUI_FONTSTYLE_STRIKE    8:= strike through
  93.  
  94.